package org.summer.lawyer.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 律所信息
 */
@Data
@TableName(value = "law_firm")
public class LawFirm {
    /**
     * 律所ID
     */
    @TableId(value = "law_firm_id", type = IdType.ASSIGN_ID)
    private Long lawFirmId;

    /**
     * 律所名称
     */
    @TableField(value = "law_firm_name")
    private String lawFirmName;

    /**
     * 律所logo
     */
    @TableField(value = "law_firm_logo")
    private String lawFirmLogo;

    /**
     * 律所类型（1=个人，2=企业）
     */
    @TableField(value = "law_firm_type")
    private String lawFirmType;

    /**
     * 律所状态（0=待审核，1=审核通过，2=冻结）
     */
    @TableField(value = "`status`")
    private String status;

    /**
     * 律所简介
     */
    @TableField(value = "law_firm_desc")
    private String lawFirmDesc;

    /**
     * 律所地址
     */
    @TableField(value = "law_firm_address")
    private String lawFirmAddress;

    /**
     * 企业名称
     */
    @TableField(value = "company_name")
    private String companyName;

    /**
     * 营业执照
     */
    @TableField(value = "license")
    private String license;

    /**
     * 社会信用代码
     */
    @TableField(value = "credit_code")
    private String creditCode;

    /**
     * 公司地址
     */
    @TableField(value = "company_address")
    private String companyAddress;

    /**
     * 是否企业认证 0未认证，1已认证
     */
    @TableField(value = "company_auth")
    private String companyAuth;

    /**
     * 省
     */
    @TableField(value = "province")
    private String province;

    /**
     * 市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区
     */
    @TableField(value = "district")
    private String district;

    /**
     * 综合评分
     */
    @TableField(value = "rating")
    private BigDecimal rating;

    /**
     * 管理员ID
     */
    @TableField(value = "admin_user_id")
    private Long adminUserId;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableField(value = "del_flag")
    @TableLogic
    private String delFlag;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 推荐首页（0不推荐，1推荐）
     */
    @TableField(value = "curated")
    private String curated;

    /**
     * 粉丝数量
     */
    @TableField(value = "followers")
    private Integer followers;

    /**
     * 擅长
     */
    @TableField(value = "special")
    private String special;

    /**
     *  资格认证（0未认证，1已认证）
     */
    @TableField(value = "certification")
    private String certification;

    /**
     *  执业资质开始时间
     */
    @TableField(value = "year_service_time")
    private Date yearServiceTime;

    /**
     * 联系电话
     */
    @TableField(value = "contact_phone")
    private String contactPhone;

    /**
     * 标签
     */
    @TableField(value = "law_firm_tag")
    private String lawFirmTag;



    /**
     * 省ID
     */
    @TableField(value = "province_id")
    private String provinceId;



    /**
     * 市ID
     */
    @TableField(value = "city_id")
    private String cityId;



    /**
     * 区ID
     */
    @TableField(value = "district_id")
    private String districtId;
}